<?php
/**
 * User:ayou chow
 * Date: 2019-11-22
 * Time: 16:02
 */

namespace app\common\model;


use think\Model;

class AdminLogModel extends Model {

    public function admin() {
        return $this->hasOne(AdminModel::class, 'id', 'adminid');
    }

    public function user() {
        return $this->hasOne(UserModel::class, 'id', 'uid');
    }

    public function mgruser() {
        return $this->hasOne(UserModel::class, 'id', 'mgrid');
    }

}